# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-json
pkgver=4.7.3
pkgrel=0
pkgdesc="JSON implementation for GNU Guile"
url="https://savannah.nongnu.org/projects/guile-json/"
arch="all"
license="GPL-3.0-or-later"
depends="guile"
makedepends="guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="https://download.savannah.nongnu.org/releases/guile-json/guile-json-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d2d22cd3962e7379c2cbe0b9220ddeaa1989c22cd757577302490b269aa52e2d9e3174f1c9ed22ad68bc0c5a1bb82d2fee354b2888d84372eed613e15b9803d1  guile-json-4.7.3.tar.gz
"
